package com.neu.af.dataFilter.mapper;

import com.neu.af.common.base.BaseMapper;
import com.neu.af.dataFilter.entity.MonitorStatus;
import com.neu.af.dataFilter.entity.Tag;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MonitorStatusMapper extends BaseMapper<String, MonitorStatus> {
    // 设置当前标签状态异常
    int updateByTagNameWithAbStatus(Map<String, Object> map);
    // 设置所有标签状态正常
    int updateAllNormalStatus();
    // 获取所有异常点
    List<MonitorStatus> getAllAbnormal();

    int initByTagName(String tagName);

    MonitorStatus getByTagName(String tagName);

    int updateFirstCreateTimeByTagName(MonitorStatus monitorStatus);

    int updateByTagNameWithDatasourceInterupt(Map<String, Object> map);

    List<MonitorStatus> getDataSourceInterupt();

    List<MonitorStatus> getDataSourceInterupt2(Map<String, Object> map);

    int updateOneAbnormalTag(String tagName);

    int updateSourceInterupt();

    List<MonitorStatus> searchStatus5();

    int deleteByTag(Tag tag);
}
